package org.nerve.data.neo4j

import com.alibaba.fastjson.JSON
import org.junit.runner.RunWith
import org.springframework.boot.autoconfigure.{EnableAutoConfiguration, SpringBootApplication}
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories
import org.springframework.test.context.ContextConfiguration
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner

/**
  * Created by zengxm on 12/13/2016.
  */
@EnableAutoConfiguration
@EnableNeo4jRepositories
@SpringBootApplication
@SpringBootTest
@RunWith(classOf[SpringJUnit4ClassRunner])
class TestOnSpring {
  def json(obj:Object)={
    println(JSON.toJSONString(obj,false))
  }

  def jsonPretty(obj:Object)={
    println(JSON.toJSONString(obj,true))
  }
}
